package xyz.labradormm.spider.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 爬虫任务表
 * </p>
 *
 * @author huanghaojian
 * @since 2023-12-10
 */
@Getter
@Setter
@TableName("spider_task_info")
@Schema(name = "SpiderTaskInfo", description = "爬虫任务表")
public class SpiderTaskInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "任务类型")
    @TableField("task_type")
    private Byte taskType;

    @Schema(description = "任务名称")
    @TableField("task_name")
    private String taskName;

    @Schema(description = "目标链接")
    @TableField("target_url")
    private String targetUrl;

    @Schema(description = "任务描述")
    @TableField("description")
    private String description;

    @Schema(description = "任务配置")
    @TableField("task_setting")
    private String taskSetting;

    @Schema(description = "任务状态")
    @TableField("task_state")
    private Byte taskState;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("create_user_id")
    private Integer createUserId;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("update_user_id")
    private Integer updateUserId;

    @TableField("update_user")
    private String updateUser;
}
